package com.visionet.school.app.web.repository.tclass;

import com.visionet.school.app.web.entity.tclass.ClassActivity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;


/**
 * Created by dzd on 2017/3/2.
 */

@Repository
public interface ClassActivityRepository extends PagingAndSortingRepository<ClassActivity,String>,JpaSpecificationExecutor<ClassActivity> {

    @Query("from ClassActivity as ca where ca.id = ?1 and ca.isDeleted = 0 ")
    public ClassActivity findClassById(String id);

}
